<?php


include_once '../../../Core/Conexion.php';
include_once '../../../Core/Controlador.php';
include_once '../../../Core/InterfazDatos.php';
//include_once '../../../Admin/entidades/CursoProfesor.php';
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Grabar
 *
 * @author home
 */
class Grabar extends Controlador
{
   function __construct() {
        parent::__construct();
    }
    
    public function ejecutar() 
    {
        $consulta=$this->conexion->consultaLibre("SELECT * FROM CURSO WHERE IDINSTITUCION='".$_REQUEST['codigo']."'");
        $fila=  mysql_fetch_array($consulta);
        $cadena="";
        do
        {
            $cadena=$cadena.$fila[0].":".$fila[2].";";
            
        }while($fila=  mysql_fetch_array($consulta));
        echo $cadena;
    }    //put your code here
}

$controlador=new Grabar();
$controlador->ejecutar();
 
 